GetFolderDescriptor
NEW WITH MAC OS 8
Gets the folder descriptor information for the specified folder type from the global descriptor list.
pascal OSErr GetFolderDescriptor ( FolderType foldType, Size descSize, FolderDesc *foldDesc);
foldType
- A constant identifying the type of the folder for which you wish to get descriptor information. See "Folder Type Constants".
descSize
- Input the size (in bytes) of the folder descriptor structure.
foldDesc
- On input, a pointer to the folder descriptor structure. On output, a pointer to a filled-out folder descriptor structure.
- function result
- A result code; see "Result Codes".
DISCUSSION
TheGetFolderDescriptor
function provides a pointer to a filled-out folder descriptor structure.SPECIAL CONSIDERATIONS
Before calling theGetFolderDescriptor
function, you must pass the selectorgestaltFindFolderAttr
to theGestalt
function. If thegestaltFolderDescSupport
bit is set,GetFolderDescriptor
is available.